package com.sap.jcp.sm.email.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * The Class ApplicationConfiguraion.
 */
public class ApplicationConfiguraion {
	
	/** The properties. */
	public static Properties properties = null;
	
	/**
	 * Instantiates a new application configuraion.
	 */
	private ApplicationConfiguraion(){
	}
	
	
	/**
	 * Getter for property value.
	 *
	 * @param propertyName the property name
	 * @return the property value
	 */
	public static String getPropertyValue(String propertyName) {
		if (properties == null) {
			properties = new PropertyLoader().getProperty();
		}
		if (properties != null) {
			return (String) properties.get(propertyName);
		}
		return null;
	}
	
}

